home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM This is GOTOLTR.BAT
- IF %1!==! GOTO OOPS
- FOR %%A IN (A a B b C c) DO IF %1==%%A GOTO OKAY
- GOTO OOPS
- :OKAY
- GOTO LABEL%1
- :LABELA
- ECHO You entered A or a
- GOTO END
- :LABELB
- ECHO You entered B or b
- GOTO END
- :LABELC
- ECHO You entered C or c
- GOTO END
- :OOPS
- ECHO Enter %0 and then A, B, or C (or a, b, c)
- :END
-